package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerAgentContributionLog implements IQLResponse
{
    /// <summary>
    /// 充值玩家Id
    /// </summary>
    public long RechargeUserId;

    /// <summary>
    /// 充值玩家昵称
    /// </summary>
    public String RechargeNickname;

    /// <summary>
    /// 充值金额，单位分
    /// </summary>
    public long RechargeAmount;

    /// <summary>
    /// 产生贡献，显示时需要除以100
    /// </summary>
    public long Contribution;

    /// <summary>
    /// 事件发生时间
    /// </summary>
    public String CreateTime;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("recharge_user_id"))
            RechargeUserId = t.getLong("recharge_user_id");
        if (t.has("recharge_nickname"))
            RechargeNickname = t.getString("recharge_nickname");
        if (t.has("recharge_amount"))
            RechargeAmount = t.getLong("recharge_amount");
        if (t.has("contribution"))
            Contribution = t.getLong("contribution");
        if (t.has("create_time"))
            CreateTime = t.getString("create_time");
    }
}
